package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.ChangePswActivity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 修改密码
 */

public class ChangePswPresenter extends XPresent<ChangePswActivity>{

    public void changePsw(String oldPsw, String newPsw, String newPsw2) {
        MineModel.getInstance().changePsw(oldPsw, newPsw, newPsw2, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if (hasV()){
                    getV().changePswSuccess();
                }
            }
        });

    }
}
